home *** CD-ROM | disk | FTP | other *** search
- set plainInt integer # use longint with MPW C
-
- set exit 0
- for f in {"parameters"}
- target "{f}"
- subword void procedure
- subword "short int" integer
- subword "long int" longint
- subword short integer
- subword long longint
- subword int {plainInt}
- substitute '->' '^.'
- substitute '∂*([a-zA-Z_0-9]+)®1' '®1^'
- substitute '==' '¥EQUALS¥'
- substitute '!=' '¥NOTEQUAL¥'
- substitute '>=' '¥GREATEREQUAL¥'
- substitute '<=' '¥LESSEQUAL¥'
- substitute '=' '¥ASSIGN¥'
- substitute '¥EQUALS¥' '='
- substitute '¥NOTEQUAL¥' '<>'
- substitute '¥GREATEREQUAL¥' '>='
- substitute '¥LESSEQUAL¥' '<='
- substitute '¥ASSIGN¥' '∂:='
- find •
- replace -c ∞ '/[¬a-zA-Z_0-9]if∂ *∂((≈)®1∂)/' 'if ®1 then'
- find •
- replace -c ∞ '/[¬a-zA-Z_0-9]while∂ *∂((≈)®1∂)/' 'while ®1 do'
- find •
- replace -c ∞ '/[¬a-zA-Z_0-9]case∂ *(≈)®1∂:/' '®1: begin '
- find •
- replace -c ∞ '/[¬a-zA-Z_0-9]switch∂ *∂((≈)®1∂)∂ *∂{/' 'case ®1 of'
- subword register ''
- subword return 'return :='
- subword struct record
- subword typedef ''
- subword variant union
- substitute '{' begin
- substitute '}' "end∂;"
- substitute '∂/∂*' '∂(∂*'
- substitute '∂*∂/' '∂*∂)'
- #save "{target}"
- #close "{target}"
- end
- set exit 1
-